<template>
  <div>
    <h3>子组件2</h3>
    <p>子组件2的玩具: {{ toy }}</p>
    <p>子组件2的书本数: {{ books }}</p>
  </div>
</template>

<script lang="ts" setup>
import { ref } from 'vue'
let toy = ref('奥特曼')
let books = ref(6)
defineExpose({
  toy, books
})
</script>

<style lang="scss" scoped>
</style>
